package com.bang.itstack.day17;

/**
 * @ClassName: ConfigOriginator
 * @Desc: TODO
 * @author: <Bang>
 * @Date: 2021/10/22 18:29
 * @Version: 1.0
 * @Modified By:
 */
public class ConfigOriginator {
    private ConfigFile configFile;

    public ConfigFile getConfigFile() {
        return configFile;
    }

    public void setConfigFile(ConfigFile configFile) {
        this.configFile = configFile;
    }

    public ConfigMemento saveMemento(){
        return new ConfigMemento(configFile);
    }

    public void getMemento(ConfigMemento memento){
        this.configFile = memento.getConfigFile();
    }

}
